import request from "../utils/request";

// 查看班级不分页
export const allClass = () => {
    return request({
        method: 'POST',
        url: '/class/findClassList'
    })
}
//添加班机
export const addClass = data => {
    return request({
        method: 'POST',
        url: '/class/addClass',
        data
    })
}
//删除班级
export const deleteClass = id => {
    return request({
        method: 'GET',
        url: '/class/deleteClass?id=' + id
    })
}
//修改班级
export const editClass = data => {
    return request({
        method: 'POST',
        url: '/class/editClass',
        data
    })
}
//(管理员)教师查看班级分页
export const adminSeeClass = data => {
    return request({
        method: 'POST',
        url: '/class/findClassPage',
        data
    })
}
//查看当前班级下的学生
export const classStudent = data => {
    return request({
        method: 'POST',
        url: '/class/findStudentClassPage',
        data
    })
}
//将学生移出班级
export const removeStudent = id => {
    return request({
        method: 'GET',
        url: '/class/removeStudent?id=' + id
    })
}
